package com.weiaibenpao.demo.chislim.ui.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.weiaibenpao.demo.chislim.R;
import com.weiaibenpao.demo.chislim.bean.FansAttentionListBean;

/**
 * Created by wlx on 2018/1/15.
 */

public class FansAdapter extends BaseQuickAdapter<FansAttentionListBean.ListBean,BaseViewHolder> {
    public FansAdapter() {
        super(R.layout.layout_fans_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, FansAttentionListBean.ListBean item) {
        helper.setText(R.id.tv_name,item.getUserName());
        Glide.with(mContext).load(item.getUserImage()).into((ImageView) helper.getView(R.id.head_img));
        helper.addOnClickListener(R.id.head_img);
    }
}
